package com.hb.trade.portal.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hb.core.pojo.portal.dto.PortalFileDTO;
import com.hb.core.pojo.portal.entity.PortalFile;
import com.hb.core.pojo.portal.mapper.PortalFileMapper;
import com.hb.trade.portal.service.PortalFileService;
import org.springframework.stereotype.Service;

@Service
public class PortalFileServiceImpl extends ServiceImpl<PortalFileMapper, PortalFile> implements PortalFileService {
    /**
     * 查询下载文件列表
     *
     * @param portalFileDTO
     * @return
     */
    @Override
    public Page<PortalFileDTO> pagePortalFile(PortalFileDTO portalFileDTO) {
        Page<PortalFileDTO> portalFileDTOPage = this.baseMapper.pagePortalFile(portalFileDTO.pages(), portalFileDTO);
        return portalFileDTOPage;
    }
}
